[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets a reader for a specific management pack class type. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IEntityObjectsManagement
Dim managementPackClass As ManagementPackClass
Dim objectQueryOptions As ObjectQueryOptions
Dim returnValue As IObjectReader(Of T)

returnValue = instance.GetObjectReader(managementPackClass, objectQueryOptions)

Syntax

Visual Basic
Function GetObjectReader(Of T As EnterpriseManagementObject) ( _
		managementPackClass As ManagementPackClass, _
		objectQueryOptions As ObjectQueryOptions _
) As IObjectReader(Of T)
C#
IObjectReader<T> GetObjectReader<T> (
		ManagementPackClass managementPackClass,
		ObjectQueryOptions objectQueryOptions
) where T : EnterpriseManagementObject
C++
generic<typename T> where T : EnterpriseManagementObject
IObjectReader<T>^ GetObjectReader (
		ManagementPackClass^ managementPackClass, 
		ObjectQueryOptions^ objectQueryOptions
)
J#

JScript

GenericParameters

T

The type to cast the reader as.

Of type EnterpriseManagementObject.

Parameters

managementPackClass

Type: ManagementPackClass

The management pack class to restrict the query by.

objectQueryOptions

Type: ObjectQueryOptions

The options to apply to the query.

Return Value

Type: IObjectReader The object reader.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also